<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/layouts/include.inc.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卫生监督基层网络协管系统</title>
<link type="text/css" rel="stylesheet" href="${ctx }/styles/v2/css/PublicDoc.css" />
<link type="text/css" rel="stylesheet" href="${ctx }/styles/v2/css/nav.css" />
<link type="text/css" rel="stylesheet" href="${ctx }/styles/v2/css/lrtk.css" />
<script src="${ctx}/styles/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link href="${ctx}/styles/uploadify/uploadify.css" rel="stylesheet" type="text/css" media="" />
<script type="text/javascript">
	var internalCodeValue = "${obj.internalCode}";

	var types = {
		'沐浴场所' : [ "公共浴室（不含桑拿）", "公共浴室（含桑拿）", "温泉浴", "足浴", '婴儿浴室' ],
		'游泳场所' : [ "人工游泳池", "天然游泳池" ],
		'住宿场所' : [ "宾馆", "旅店", "招待所" ],
		'理发美容场所' : [ "理发店", "美容店" ],
		'其它公共场所' : [ "饭店", "咖啡馆", "酒吧", "茶座", "影剧院", "游艺厅（室）", "录像厅（室）", "舞厅", "音乐厅", "展览室", "博物馆", "美术馆", "图书馆", "商场（店）", "书店", "候诊室", "候车（机、船）室" ]
	};

	$(function() {
		
		//显示处理的图片
		var ary1 = $('#imagesURL1').val().trim().split(";");
		$("#showImgContextQD").html("");
		for(var i=0;i<ary1.length;i++){
			if(ary1[i].trim().length>0){
				var content = '<tr>' +'<td class="biao">附加图片</td>'+ '<td class="td_2"  colspan="3" style="text-align:left;" >' + '<img src="${ctx}/styles/v2/images/chacha.png" width="20" height="20" onclick="deleteImg(this,\''+ary1[i]+'\')"><img src="${ctx}'+ary1[i]+'" width="92" height="92">'+ '</tr>';
				$("#showImgContextQD").append(content);
			}
		}
		

		$("#runType").html("");
		var selectedValue = "${obj.runType}";
		var selectedclass = "${obj.runClass}";

		$("#runType").change(function() {
			selectClass($(this).val(), selectedclass)
		})

		for ( var key in types) {
			if (key == selectedValue) {
				$("#runType").append('<option value="'+key+'" selected>' + key + '</option>');
			} else {
				$("#runType").append('<option value="'+key+'">' + key + '</option>');
			}
		}

		$("#runType").change();
	});

	function selectClass(item, defalutValue) {
		$("#runClass").html("");
		var classValue = types[item];
		for ( var i in classValue) {
			if (classValue[i] == defalutValue) {
				$("#runClass").append('<option value="'+classValue[i]+'" selected>' + classValue[i] + '</option>');
			} else {
				$("#runClass").append('<option value="'+classValue[i]+'">' + classValue[i] + '</option>');
			}
		}
	}
	
	
	
	function xian(){
		var address = document.getElementById("address");
		var xian = document.getElementById("select_2_dz");
		address.value="";//先清空
		address.value=xian.value+address.value;
		
	}
	
	function zhen(){
		var address = document.getElementById("address");
		var xian = document.getElementById("select_2_dz");
		var zhen = document.getElementById("select_3_dz");
		
		if(xian.value!="" && address.value!=""){
			address.value="";
			address.value=xian.value+zhen.value;
		}
		
	}
	
	function cun(){
		var address = document.getElementById("address");
		var xian = document.getElementById("select_2_dz");
		var zhen = document.getElementById("select_3_dz");
		var cun = document.getElementById("select_4_dz");
		
		if(xian.value!="" && zhen.value!="" && address.value!=""){
			address.value="";
			address.value=xian.value+zhen.value+cun.value;
		}
		
	}
	
	
		$(function(){
		//地址选择
		
		$("#select_2_dz").change(function() {
			$("#select_3_dz").html('<option value="">请选择</option>');
			var selectItem = $(this).find('option:selected');
			var id = $(selectItem).attr("id");
			$.get("${ctx }/management/security/address/getAddresses", {
				'level' : 2,
				'parent.id' : id
			}, function(data) {
				$(data).each(function(i, item) {
					var selected = "";
					var internalCode = internalCodeValue;
					if (internalCode.indexOf(item.internalCode) != -1) {
						selected = 'selected="selected"';
					}
					$("#select_3_dz").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
				});

				if (data.length > 0 && $("#internalCode").val() != "") {
					$("#select_3_dz").change();
				}
			});
			
			
			
			var internalCode = $('#select_2_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}
			
		});

		$("#select_3_dz").change(function() {
			$("#select_4_dz").html('<option value="">请选择</option>');
			var selectItem = $(this).find('option:selected');
			var id = $(selectItem).attr("id");

			$.get("${ctx }/management/security/address/getAddresses", {
				'level' : 3,
				'parent.id' : id
			}, function(data) {
				$(data).each(function(i, item) {
					var selected = "";
					var internalCode = internalCodeValue;
					if (internalCode.indexOf(item.internalCode) != -1) {
						selected = 'selected="selected"';
					}
					$("#select_4_dz").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
				});

				if (data.length > 0 && $("#internalCode").val() != "") {
					$("#select_4_dz").change();
				}
			});
			
			
			var internalCode = $('#select_2_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

		});

		$("#select_4_dz").change(function() {
			
			var internalCode = $('#select_2_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_dz option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}
			
		});

		$.get("${ctx }/management/security/address/getAddresses", {
			'level' : 1
		}, function(data) {
			$(data).each(function(i, item) {
				var selected = "";
				var internalCode = internalCodeValue;
				if (internalCode.indexOf(item.internalCode) != -1) {
					selected = 'selected="selected"';
				}
				$("#select_2_dz").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
			});

			if (data.length > 0 && $("#internalCode").val() != "") {
				$("#select_2_dz").change();
			}
		});
		
		
		
		
		
		//网格选择
		$("#select_2_wg").change(function() {
			$("#select_3_wg").html('<option value="">请选择</option>');
			var selectItem = $(this).find('option:selected');
			var id = $(selectItem).attr("id");
			$.get("${ctx }/management/security/address/getAddresses", {
				'level' : 2,
				'parent.id' : id
			}, function(data) {
				$(data).each(function(i, item) {
					var selected = "";
					var internalCode = internalCodeValue;
					if (internalCode.indexOf(item.internalCode) != -1) {
						selected = 'selected="selected"';
					}
					$("#select_3_wg").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
				});

				if (data.length > 0 && $("#internalCode").val() != "") {
					$("#select_3_wg").change();
				}
			});

			//var valueStr = $("#select_2_wg").val() + $("#select_3_wg").val() + $("#select_4_wg").val();

			var internalCode = $('#select_2_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			//$("#address_${forCount }").val(valueStr);
		});

		$("#select_3_wg").change(function() {
			$("#select_4_wg").html('<option value="">请选择</option>');
			var selectItem = $(this).find('option:selected');
			var id = $(selectItem).attr("id");

			$.get("${ctx }/management/security/address/getAddresses", {
				'level' : 3,
				'parent.id' : id
			}, function(data) {
				$(data).each(function(i, item) {
					var selected = "";
					var internalCode = internalCodeValue;
					if (internalCode.indexOf(item.internalCode) != -1) {
						selected = 'selected="selected"';
					}
					$("#select_4_wg").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
				});

				if (data.length > 0 && $("#internalCode").val() != "") {
					$("#select_4_wg").change();
				}
			});

			//var valueStr = $("#select_2_wg").val() + $("#select_3_wg").val() + $("#select_4_wg").val() + $("#select_wg").val();

			var internalCode = $('#select_2_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			//$("#address_${forCount }").val(valueStr);
		});

		$("#select_4_wg").change(function() {
			//var valueStr = $("#select_2_wg").val() + $("#select_3_wg").val() + $("#select_4_wg").val() + $("#select_wg").val();

			var internalCode = $('#select_2_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_3_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			internalCode = $('#select_4_wg option:selected').attr("internalCode");
			if (internalCode != null && internalCode != "") {
				$("#internalCode").val(internalCode);
			}

			//$("#address_${forCount }").val(valueStr);
		});

		$.get("${ctx }/management/security/address/getAddresses", {
			'level' : 1
		}, function(data) {
			$(data).each(function(i, item) {
				var selected = "";
				var internalCode = internalCodeValue;
				if (internalCode.indexOf(item.internalCode) != -1) {
					selected = 'selected="selected"';
				}
				$("#select_2_wg").append('<option '+selected+' internalCode="'+item.internalCode+'" id="'+item.id+'" value="'+item.name+'">' + item.name + '</option>');
			});

			if (data.length > 0 && $("#internalCode").val() != "") {
				$("#select_2_wg").change();
			}
		});
	});
		
	function clicks(){
	
		var legal=document.getElementById("legal").value;
		var phone=document.getElementById("phone").value;
		var select_2_dz=document.getElementById("select_2_dz").value;
		var select_3_dz=document.getElementById("select_3_dz").value;
		var select_4_dz=document.getElementById("select_4_dz").value;
		var address=document.getElementById("address").value;
		
	
		if(  ""==legal || ""==phone || ""==select_2_dz || ""==select_3_dz || ""==select_4_dz || ""==address){
			alert("请填写带有*号的表单");
			return false;
		}
		
	
	}
	
	
	function saveSubmit(url){
		$("#editForm").attr("action",url);
		$("#editForm").submit();
	}
	
		function deleteImg(item,url){
		var value = $("#imagesURL1").val();
		value = value.replace(url,"");
		$("#imagesURL1").val(value);
		
		$(item).parent().parent().remove();
	}
	
	


	$(function() {
		
		$('#file_upload1').uploadify({
			'swf' : '${ctx}/styles/uploadify/uploadify.swf',
			'uploader' : '${ctx}/illegalLog/upload',
			'queueID' : 'queue1',
			'fileExt' : '*.jpg;*.gif,*.png,*.mp3,*.word,*.excel',
			'removeCompleted' : false,
			'buttonText' : '选择文件及图片',
			'onUploadSuccess' : function(file, data, response) {
				if ($("#imagesURL1").val() == "") {
					$("#imagesURL1").val(data);
				} else {
					$("#imagesURL1").val($("#imagesURL1").val() + data);
				}
				
				var dataUrl=data.replace(";","");   

				var content = '<tr>' +'<td class="biao">附加图片</td>'+ '<td class="td_2"  colspan="3" style="text-align:left;" >' + '<img src="${ctx}/styles/v2/images/chacha.png" width="20" height="20" onclick="deleteImg(this,\''+data+'\')"><img src="${ctx}'+dataUrl+'" width="92" height="92">'+ '</tr>';

				$("#showImgContextQD").append(content)
			}
		});

		$('#file_upload2').uploadify({
			'swf' : '${ctx}/styles/uploadify/uploadify.swf',
			'uploader' : '${ctx}/illegalLog/upload',
			'queueID' : 'queue1',
			'fileExt' : '*.jpg;*.gif,*.png,*.mp3,*.word,*.excel',
			'removeCompleted' : false,
			'buttonText' : '选择文件及图片',
			'onUploadSuccess' : function(file, data, response) {
				if ($("#imagesURL2").val() == "") {
					$("#imagesURL2").val(data);
				} else {
					$("#imagesURL2").val($("#imagesURL2").val() + data);
				}
				
				var dataUrl=data.replace(";","");   

				var content = '<tr>' +'<td class="biao">附加图片</td>'+ '<td class="td_2"  colspan="3" style="text-align:left;" >' + '<img src="${ctx}/styles/v2/images/chacha.png" width="20" height="20" onclick="deleteImg(this,\''+data+'\')"><img src="${ctx}'+dataUrl+'" width="92" height="92">'+ '</tr>';

				$("#showImgContextJD").append(content)
			}
		});

	})
	
</script>
</head>
<body>
	<div class="op">
		<div class="cz">
			<p style="font-size: 18px;">操作栏</p>
		</div>

		<%@ include file="/WEB-INF/views/v2/publicDoc/left.jsp"%>
	</div>
	<div class="con">
		<!--导航begin-->
		<%@ include file="/WEB-INF/layouts/nav.jsp"%>
		<!--全部管理对象-->
		<div class="new">
			<h3>公共场所编辑页</h3>
			<form id="editForm" name="editForm" action="${ctx }/v2/publicDoc/save" method="post" onsubmit="return clicks();">
				<input type="hidden" name="id" value="${obj.id}" /> <input type="hidden" name="internalCode" id="internalCode" value="${obj.internalCode}" />
				<table border="1" cellpadding="0px" cellspacing="0px">
					<tr>
						<td class="biao">单位名称&nbsp;</td>
						<td><input id="companyName" name="companyName" class="tt" value="${obj.companyName}" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao"><span style="color: red;"></span>档案编号&nbsp;</td>
						<td><input id="code" name="code" class="tt" type="textbox" value="${obj.code}" placeholder="自动生成" disabled="disabled" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					</tr>
					<tr>
						<td class="biao"><span style="color: red;">*</span>负责人/法人代表&nbsp;</td>
						<td><input id="legal" name="legal" class="tt" type="textbox" value="${obj.legal }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao"><span style="color: red;">*</span>联系号码&nbsp;</td>
						<td><input id="phone" name="phone" class="tt" type="textbox" value="${obj.phone }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					</tr>
					<tr>
						<td class="biao"><span><span style="color: red;">*</span>经营地址&nbsp;</td>
						<td colspan="3">
						<select name="county" id="select_2_dz" onclick="xian();" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;">
								<option value="">请选择</option>
						</select>
						<select name="street" id="select_3_dz" onclick="zhen();" style="margin-left: 5px; border: 1px solid #cbcbcb; height: 35px;">
								<option value="">请选择</option>
						</select>
						<select name="village" id="select_4_dz" onclick="cun();" style="margin-left: 5px; border: 1px solid #cbcbcb; height: 35px;">
								<option value="">请选择</option>
						</select>
						<input type="text" name="address" id="address" value="${obj.address}" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px; width: 220px;" />
					</tr>

					<tr>
						<td class="biao"><span style="color: red;">*</span>是否有许可证&nbsp;</td>
						<td colspan="3">&nbsp;&nbsp;&nbsp;有&nbsp; <input type="radio"  name="hasLicense" value="有" ${obj.hasLicense=="有"?"checked":"" } /> &nbsp;&nbsp;无&nbsp;<input type="radio"   name="hasLicense" value="无" ${obj.hasLicense=="无"?"checked":"" } />
						</td>
				
						
					</tr>
					</tr>
						<tr>
						<td class="biao">卫生许可证号&nbsp;</td>
						<td><input id="license" name="license" value="${obj.license }" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						
							<td class="biao">许可项目&nbsp;</td>
						<td><input id="projects" name="projects" value="${obj.projects }" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						
						
						
						</td>
					</tr>
					<tr>
							<td class="biao">发证日期&nbsp;</td>
						<td><input id="issueDate" name="issueDate" value="<fmt:formatDate value="${obj.issueDate}" type="date"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						
						<td class="biao">许可证有效期截止&nbsp;</td>
						<td><input name="endDate" id="endDate" value="<fmt:formatDate value="${obj.endDate}" type="date"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					
					<tr>
							<td class="biao"><span style="color: red;">*</span>是否有工商执照&nbsp;</td>
							<td colspan="3">&nbsp;&nbsp;&nbsp;有&nbsp; <input type="radio"  name="hasgongshangcode" value="有" ${obj.hasgongshangcode=="有"?"checked":"" } /> &nbsp;&nbsp;无&nbsp;<input type="radio"   name="hasgongshangcode" value="无" ${obj.hasgongshangcode=="无"?"checked":"" } />
						</tr>
					<tr>
					<tr>
						<td class="biao">工商执照号&nbsp;</td>
						<td><input id="gongshangcode" name="gongshangcode" value="${obj.gongshangcode }" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						
						<td class="biao">工商执照发证日期&nbsp;</td>
						<td><input id="gongshangDate" name="gongshangDate" value="<fmt:formatDate value="${obj.gongshangDate}" type="date"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						</tr>
					<tr>
						<td class="biao"><span style="color: red;">*</span>经营类别&nbsp;</td>
						<td colspan="3"><select name="runType" id="runType" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;">
								<option value="住宿" ${obj.runType=="住宿"?"selected":"" }>住宿</option>
								<option value="美容美发" ${obj.runType=="美容美发"?"selected":"" }>美容美发</option>
								<option value="公共浴室" ${obj.runType=="公共浴室"?"selected":"" }>公共浴室</option>
								<option value="游泳场所" ${obj.runType=="游泳场所"?"selected":"" }>游泳场所</option>
								<option value="文化娱乐场所" ${obj.runType=="文化娱乐场所"?"selected":"" }>文化娱乐场所</option>
								<option value="饭馆(餐厅)" ${obj.runType=="饭馆(餐厅)"?"selected":"" }>饭馆(餐厅)</option>
								<option value="其他" ${obj.runType=="其他"?"selected":"" }>其他</option>
						</select> <select name="runClass" id="runClass" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;">
								<option value="住宿" ${obj.runClass=="住宿"?"selected":"" }>住宿</option>
								<option value="美容美发" ${obj.runClass=="美容美发"?"selected":"" }>美容美发</option>
								<option value="公共浴室" ${obj.runClass=="公共浴室"?"selected":"" }>公共浴室</option>
								<option value="游泳场所" ${obj.runClass=="游泳场所"?"selected":"" }>游泳场所</option>
								<option value="文化娱乐场所" ${obj.runClass=="文化娱乐场所"?"selected":"" }>文化娱乐场所</option>
								<option value="饭馆(餐厅)" ${obj.runClass=="饭馆(餐厅)"?"selected":"" }>饭馆(餐厅)</option>
								<option value="其他" ${obj.runClass=="其他"?"selected":"" }>其他</option>
						</select></td>
					</tr>



					<tr>
						<td class="biao">经营面积&nbsp;</td>
						<td><input name="area" id="area" class="tt" type="textbox" value="${obj.area }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao">状态&nbsp;</td>
						<td><select id="state" name="state" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;">

								<option value="营业" ${obj.state=="营业"?"selected":"" }>营业</option>
								<option value="停业" ${obj.state=="停业"?"selected":"" }>停业</option>
								<option value="注销" ${obj.state=="注销"?"selected":"" }>注销</option>
						</select></td>
					</tr>

					<tr>
						<td class="biao"><span style="color: red;">*</span>有无超范围经营&nbsp;</td>
						<td colspan="3">&nbsp;&nbsp;&nbsp;无&nbsp;<input type="radio"  checked="checked" name="hasScope" value="无" ${obj.hasScope=="无"?"checked":"" } /> &nbsp;&nbsp; 超范围经营&nbsp;<input type="radio" name="hasScope" value=" 超范围经营" ${obj.hasScope==" 超范围经营"?"checked":"" } /> &nbsp;&nbsp;经营项目与许可司核准项目不符&nbsp;<input type="radio" name="hasScope" value="经营项目与许可司核准项目不符" ${obj.hasScope=="经营项目与许可司核准项目不符"?"checked":"" } />
						</td>
					</tr>
					<tr>
						<td class="biao">有效培训证件数&nbsp;</td>
						<td><input id="trainNum" name="trainNum" value="${obj.trainNum}" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao">有效健康证明数&nbsp;</td>
						<td><input name="healthyNum" id="healthyNum" class="tt" type="textbox" value="${obj.healthyNum }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					</tr>
					<tr>
						<td class="biao">从业人员&nbsp;</td>
						<td><input id="peopleNum" name="peopleNum" value="${obj.peopleNum}" type="text" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao">消毒情况&nbsp;</td>
						<td><input name="disinfect" id="disinfect" class="tt" type="textbox" value="${obj.disinfect }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					</tr>

					<tr>
						<td class="biao">年检/复核换证情况&nbsp;</td>
						<td><input id="checkInfo" name="checkInfo" value="${obj.checkInfo}" class="tt" type="textbox" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
						<td class="biao">档案备注信息&nbsp;</td>
						<td><input name="remark" id="remark" class="tt" type="textbox" value="${obj.remark }" style="margin-left: 10px; border: 1px solid #cbcbcb; height: 35px;" /></td>
					</tr>
					<tr>
						<td class="biao">建档机构&nbsp;</td>
						<td>&nbsp;&nbsp;&nbsp; <c:if test="${empty obj.createCompany}">
					             ${user.organization.name }
					        </c:if> ${obj.createCompany}
						</td>
						<td class="biao">建档人&nbsp;</td>
						<td>&nbsp;&nbsp;&nbsp; <c:if test="${empty obj.createUserName}">
					              		${user.realname }
					              	</c:if> ${obj.createUserName }
						</td>
					</tr>
					<tr>
						<td class="biao">建档时间&nbsp;</td>
						<td colspan="3"><c:if test="${empty obj.createDate}">
						              		${currentDate }
						              	</c:if> ${obj.createDate }</td>
						
					</tr>
					
					<tr>
							<td class="biao">附现场照片&nbsp;</td>
							<td colspan="3" class="td_3">
								&nbsp;<input id="file_upload1" name="file_upload1" type="file" multiple="true">
								 <input type="hidden" id="imagesURL1" name="imagesURL" value="${obj.imagesURL }" />
								 <input type="hidden" id="qdfindPractice" name="findPractice" value="${obj.imagesURL }" /> 
								
							</td>
						</tr>
						<tfoot id="showImgContextQD">
	
						</tfoot>
				</table>
				<table>
					<tr>
							<td colspan="4" style="text-align: center;">
								<input type="button" value="保存" onclick="saveSubmit('${ctx }/v2/publicDoc/save')" alt="" class="baocun" />
								
								<a href="javascript:void(0)" onclick="saveSubmit('${ctx }/v2/publicDoc/saveEdit')" style="margin-left:10px;display:block;width: 140px;float:left; height: 35px; border: none; border-radius: 5px; background-color: #d6585b; color: white; font-size: 15px;line-height:35px;">保存并录入指导记录</a>
								
								<input type="button" value="返回" onclick="javascript:history.back(-1);" style="margin-left:10px;display:block;width: 70px;float:left; height: 35px; border: none; border-radius: 5px; background-color: #d6585b; color: white; font-size: 15px;line-height:35px;"/>	
							</td>
					 </tr>
				</table>
			</form>
		</div>

		<!--全部管理对象-->
	</div>

</body>
</html>